home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / NDK / NDK_1.3 / Include-Strip1.3 / include.h / graphics / gfx.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-07-15  |  469 b   |  32 lines

  1. #ifndef    GRAPHICS_GFX_H
  2. #define    GRAPHICS_GFX_H
  3. #define    BITSET    0x8000
  4. #define    BITCLR    0
  5. #define    AGNUS
  6. #ifdef    AGNUS
  7. #define    TOBB(a)    ((long)(a))
  8. #else
  9. #define    TOBB(a)    ((long)(a)>>1)
  10. #endif
  11. struct    Rectangle
  12. {
  13. SHORT    MinX,MinY;
  14. SHORT    MaxX,MaxY;
  15. };
  16. typedef    struct    tPoint
  17. {
  18. WORD    x,y;
  19. }    Point;
  20. typedef    UBYTE    *PLANEPTR;
  21. struct    BitMap
  22. {
  23. UWORD    BytesPerRow;
  24. UWORD    Rows;
  25. UBYTE    Flags;
  26. UBYTE    Depth;
  27. UWORD    pad;
  28. PLANEPTR    Planes[8];
  29. };
  30. #define    RASSIZE(w,h)    ((h)*(    (w+15)>>3&0xFFFE))
  31. #endif
  32.